import java.util.ArrayList;

public class test3 {
    public static void main(String[] args) {
//        int[] a = {5,3,2,0,1};
//        int [] b=new int[6];
//        test3 t = new test3();
//        t.tong(a,b);
        int a[] = {19,1,23,14,55,68,11,82,36};
        test4 test4 = new test4();
        test4.insert(a);
        test4.display();
    }

    public void tong(int[] a,int b[]) {
        for (int i = 0; i < a.length; i++) {
            b[a[i]]++;
        }
        for (int i = 0; i < b.length; i++){
           if (b[i]!=0){
               System.out.print(i+"\t");
           }
        }
    }
}